/*
 * SnapshotSettingsPanel.java
 *
 * Created on __DATE__, __TIME__
 */

package com.javapda.app.camera.gui;

import java.util.Enumeration;

import javax.swing.JRadioButton;

/**
 *
 * @author  __USER__
 */
public class SnapshotSettingsPanel extends javax.swing.JPanel {

	/** Creates new form SnapshotSettingsPanel */
	public SnapshotSettingsPanel() {
		initComponents();
		//		System.out.println("SET DISABLED");
		Enumeration e = snapshotSettingsRadioButtonGroup.getElements();
		while (e.hasMoreElements()) {
			JRadioButton rb = (JRadioButton) e.nextElement();
			rb.setEnabled(false);
			System.out.println("SET RB DISABLED");
		}
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
	private void initComponents() {
		snapshotSettingsRadioButtonGroup = new javax.swing.ButtonGroup();
		imageSizePanel1 = new com.javapda.app.camera.gui.ImageSizePanel();
		compressedRadioButton = new javax.swing.JRadioButton();

		setBorder(javax.swing.BorderFactory.createTitledBorder(null,
						"Snapshot Settings",
						javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
						javax.swing.border.TitledBorder.DEFAULT_POSITION,
						new java.awt.Font("Tahoma", 1, 12)));

		compressedRadioButton.setText("Compressed");
		compressedRadioButton
						.setToolTipText("Controls whether or not the Snapshot is in compressed or uncompressed format");
		compressedRadioButton.setBorder(javax.swing.BorderFactory
						.createEmptyBorder(0, 0, 0, 0));
		compressedRadioButton.setMargin(new java.awt.Insets(0, 0, 0, 0));

		org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
						this);
		this.setLayout(layout);
		layout
						.setHorizontalGroup(layout
										.createParallelGroup(
														org.jdesktop.layout.GroupLayout.LEADING)
										.add(
														org.jdesktop.layout.GroupLayout.TRAILING,
														layout
																		.createSequentialGroup()
																		.addContainerGap(
																						org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																						Short.MAX_VALUE)
																		.add(
																						imageSizePanel1,
																						org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																						org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																						org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
																		.addContainerGap())
										.add(
														layout
																		.createSequentialGroup()
																		.addContainerGap()
																		.add(
																						compressedRadioButton)
																		.addContainerGap(
																						128,
																						Short.MAX_VALUE)));
		layout
						.setVerticalGroup(layout
										.createParallelGroup(
														org.jdesktop.layout.GroupLayout.LEADING)
										.add(
														layout
																		.createSequentialGroup()
																		.add(
																						imageSizePanel1,
																						org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																						org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																						org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																						org.jdesktop.layout.LayoutStyle.RELATED)
																		.add(
																						compressedRadioButton)));
	}// </editor-fold>//GEN-END:initComponents

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JRadioButton compressedRadioButton;
	private com.javapda.app.camera.gui.ImageSizePanel imageSizePanel1;
	private javax.swing.ButtonGroup snapshotSettingsRadioButtonGroup;
	// End of variables declaration//GEN-END:variables

}